<template>
    <div>
        使用useFetch
    </div>
</template>

<script setup lang="ts">
import { useCustomFetch } from '@/hooks/useCustomFetch';
const { data, error, execute } = useCustomFetch('https://api.example.com/data');
console.log('请求结果', data, error);
</script>